package com.okyai.qa.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.okyai.common.annotation.Excel;
import com.okyai.common.core.domain.BaseEntity;

/**
 * 答题记录项目对象 qa_notes_record
 * 
 * @author okyai
 * @date 2021-03-19
 */
public class NotesRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 答案主键 */
    private Long answerId;

    /** 记录主键 */
    @Excel(name = "记录主键")
    private Long notesId;

    /** 问卷题目主键 */
    @Excel(name = "问卷题目主键")
    private Long questionsId;

    /** 答案序号 */
    @Excel(name = "答案序号")
    private Long answerIndex;

    /** 答案标签名 */
    @Excel(name = "答案标签名")
    private String answerName;

    /** 答案 */
    @Excel(name = "答案")
    private String answerValue;

    /** 得分 */
    @Excel(name = "得分")
    private Long score;

    public void setAnswerId(Long answerId) 
    {
        this.answerId = answerId;
    }

    public Long getAnswerId() 
    {
        return answerId;
    }
    public void setNotesId(Long notesId) 
    {
        this.notesId = notesId;
    }

    public Long getNotesId() 
    {
        return notesId;
    }
    public void setQuestionsId(Long questionsId) 
    {
        this.questionsId = questionsId;
    }

    public Long getQuestionsId() 
    {
        return questionsId;
    }
    public void setAnswerIndex(Long answerIndex) 
    {
        this.answerIndex = answerIndex;
    }

    public Long getAnswerIndex() 
    {
        return answerIndex;
    }
    public void setAnswerName(String answerName) 
    {
        this.answerName = answerName;
    }

    public String getAnswerName() 
    {
        return answerName;
    }
    public void setAnswerValue(String answerValue) 
    {
        this.answerValue = answerValue;
    }

    public String getAnswerValue() 
    {
        return answerValue;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("answerId", getAnswerId())
            .append("notesId", getNotesId())
            .append("questionsId", getQuestionsId())
            .append("answerIndex", getAnswerIndex())
            .append("answerName", getAnswerName())
            .append("answerValue", getAnswerValue())
            .append("score", getScore())
            .toString();
    }
}
